package com.ggh.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ggh.entity.User;
import com.ggh.entity.UserBean;
import com.ggh.vo.Body;

/**

 * @author ： jj
 * @date ：2019/10/16 13:41
 * @description : 用户
 * @path : UserService.java.UserService
 * @modifiedBy ：
 */
public interface UserService extends IService<User> {
    /**
     * 根据用户名登录
     * @param name
     * @return
     */
    User getUserByName(String name);
    UserBean selectByuserId(Integer userid);
    /**
    * @description :微信登录
    * @param openId 
    * @return: com.ggh.entity.User
    * @date : 2019/10/16 14:26
    * @author : jj
    * @throws
    */
    User getByOpenid(String openId);

    Body edit(User user);

    Body changePassword(String oldPwd,String newPwd,String confirmPwd );

    Body saveUserInfo(Integer userid,String loginName,String phone,String avatarurl,String nickname);
}
